import java.io.*;


public class Depozit 
{
	Lista l=new Lista();
	public void addMarfa() throws IOException
	{
		l.addMarfa();
	}
	public void stergeMarfa() throws NumberFormatException, IOException
	{
		l.stergeMarfa();
	}
	public void showMarfa()
	{
		l.showMarfa();
	}
	public static void main(String arg[]) throws NumberFormatException, IOException
	{
		int op;
		Depozit dep=new Depozit();
		BufferedReader tst=new BufferedReader(new InputStreamReader(System.in));
		do
		{
		System.out.println("DEPOZIT COMERCIAL DE MARFURI\n");
		System.out.println("1.Adauga marfa");
		System.out.println("2.Sterge marfa");
		System.out.println("3.Afisare inventar");
		System.out.print("Introduceti optiunea:");
		op=Integer.parseInt(tst.readLine()); 
		switch(op)
		{
		case 1:
			dep.addMarfa();
			break;
		case 2:
			dep.stergeMarfa();
			break;
		case 3:
			dep.showMarfa();
			break;
		default:System.out.println("Ati gresit optiunea.");
				break;
		}
		}while(op!=4);
	}
	
}
